package com.cl.ks.repository;

import com.cl.ks.entity.RlRuleTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RlRuleTableRepository extends JpaRepository<RlRuleTable,Integer> {
    @Query(nativeQuery = true,value = "select * from rl_rule_table where rule_id = :ruleId")
    List<RlRuleTable> getRlRuleTablesByRuleId(Integer ruleId);


}
